<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue';
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue';
const channelID = ref(0)

const changeID = (id: number) => {

  channelID.value = id

  console.log(channelID.value);

}
</script>

<template>
  <ChannelNav :channelID="channelID" @changeChannelID="changeID"></ChannelNav>
  <ArticleList :channelID="channelID"></ArticleList>
</template>